<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class IntegralOrders extends Model
{
    protected $table='integral_orders';
    protected $guarded=[];
    public function user(){
        return $this->belongsTo('App\Http\Model\User','user_id');
    }
    public function address(){
        return $this->belongsTo('App\Http\Model\Address','address_id');
    }
    public function clothingAttr(){
    	return $this->belongsTo('App\Http\Model\ClothingAttr','clothing_attr_id');
    }
    public function goods(){
        return $this->belongsTo('App\Http\Model\Goods','goods_id');
    }
}
